package calc;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class NewCalc extends JPanel {	
	public static JFrame frame;
	
	public static void main(String args[]){
		frame = new JFrame("Ash's Proulator");
		frame.getContentPane().add(new NewCalc());
		frame.setVisible(true);
		frame.setSize(450, 240);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	public NewCalc(){
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{150, 150, 0};
		gridBagLayout.rowHeights = new int[]{210, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
		setLayout(gridBagLayout);
		
		StandardView sd = new StandardView();
		GridBagConstraints gbc_sd = new GridBagConstraints();
		gbc_sd.insets = new Insets(0, 0, 5, 10);
		gbc_sd.fill = GridBagConstraints.BOTH;
		gbc_sd.gridx = 0;
		gbc_sd.gridy = 0;
		gbc_sd.anchor = GridBagConstraints.NORTHWEST;
		add(sd, gbc_sd);
		
		ScientificView sc = new ScientificView();
		GridBagConstraints gbc_sc = new GridBagConstraints();
		gbc_sc.insets = new Insets(0, 0, 5, 5);
		gbc_sc.fill = GridBagConstraints.BOTH;
		gbc_sc.gridx = 1;
		gbc_sc.gridy = 0;
		gbc_sc.anchor = GridBagConstraints.NORTHWEST;
		add(sc, gbc_sc);
	}

}
